package com.lp.business.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.iframework.support.spring.hibernate.model.BaseHibernateModelSupport;

/**
 * 查看信息模型
 * 
 * @author lp
 * @date 2018-08-08 18:23:41
 */
@Entity
@Table(name = "look")
@org.hibernate.annotations.Table(appliesTo = "look", comment = "查看信息模型")
public class Look extends BaseHibernateModelSupport {
	private static final long serialVersionUID = 1L;
	
	/** 查看报告Id */
	@Column(columnDefinition = "varchar(32)  comment '查看报告Id'")
	private String reportId;
	
	/** 查看报告 */
	@ManyToOne(cascade = { CascadeType.MERGE }, fetch = FetchType.LAZY)
	@JoinColumn(name = "reportId", nullable = true, insertable = false, updatable = false)
	private Report report;
	
	/** 查看人Id */
	@Column(columnDefinition = "varchar(32)  comment '查看人Id'")
	private String memberId;
	
	/** 查看人 */
	@ManyToOne(cascade = { CascadeType.MERGE }, fetch = FetchType.LAZY)
	@JoinColumn(name = "memberId", nullable = true, insertable = false, updatable = false)
	private Member member;
	
	/** 是否免费查看 */
	@Column(columnDefinition = "varchar(32)  comment '是否免费查看'")
	private String isFree;

	public String getReportId() {
		return reportId;
	}

	public void setReportId(String reportId) {
		this.reportId = reportId;
	}

	
	public Report getReport() {
		return report;
	}

	public void setReport(Report report) {
		this.report = report;
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public String getIsFree() {
		return isFree;
	}

	public void setIsFree(String isFree) {
		this.isFree = isFree;
	}
	
}
